package hu.raholec.data;

public class BreadCrumbElement implements Comparable<BreadCrumbElement> {
	private String name;
	private String path;
	
	
	public BreadCrumbElement(String name, String path) {
		super();
		this.name = name;
		this.path = path;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getPath() {
		return path;
	}


	public void setPath(String path) {
		this.path = path;
	}


	@Override
	public int compareTo(BreadCrumbElement o) {
		// TODO Auto-generated method stub
		
		return getPath().length()-o.getPath().length();
	}

}
